Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@netanel-haber
netanel-haber / codex-termux-fix.md
Last active July 22, 2026 21:12
Fix OpenAI Codex CLI on Termux (Android)

Fix: OpenAI Codex CLI on Termux

codex login --device-auth fails with:

error sending request for url (https://auth.openai.com/api/accounts/deviceauth/usercode)

Cause: Codex ships a musl-linked binary that expects /etc/resolv.conf (DNS) and /etc/ssl/certs/ca-certificates.crt (TLS) — neither exist on Termux.

Verify:

@tecandrew
tecandrew / wsl-1password-integration.md
Last active July 22, 2026 21:10
WSL/WSL2 Integration with 1Password SSH

On Windows Side

Enable 1Password's SSH Agent.

Using Powershell, install npiperelay via the scoop package manager.

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
irm get.scoop.sh | iex  # install scoop
scoop install git

AMD APU Optimization Guide for llama.cpp on SteamOS

This guide documents the process to optimize and run large language models on AMD APUs (specifically 7840U with Radeon 780M, Ayaneo Flip w/ 32GB RAM) using llama.cpp with Vulkan acceleration.

Prerequisites

System Preparation

# Disable read-only filesystem (SteamOS specific)
sudo steamos-readonly disable
@paceaux
paceaux / tinyRules.css.md
Last active July 22, 2026 21:08
Tiny rules for how to name things in CSS and JS

Tiny rules for how to name stuff

CSS

How to name CSS classes

Stateful Class names

Is it a state that is only one of two conditions? (i.e. a boolean)

@bradtraversy
bradtraversy / typescript-crash.ts
Last active July 22, 2026 21:05
Basic intro to TypeScript (From YouTube Crash Course)
// Basic Types
let id: number = 5
let company: string = 'Traversy Media'
let isPublished: boolean = true
let x: any = 'Hello'
let ids: number[] = [1, 2, 3, 4, 5]
let arr: any[] = [1, true, 'Hello']
// Tuple
@GhassenChawati1
GhassenChawati1 / FEDORA SETUP
Last active July 22, 2026 20:58
Fedora macOS Style Setup
💻 Distro
• Fedora Workstation
🖼 Wallpaper
https://wall.alphacoders.com/big.php?i=1351143
🎨 WhiteSur GTK Theme

Uninstall Microsoft Edge

Important

Working on the latest supported Windows versions. Run Windows Update before following this guide.

1. Open Powershell > RUN AS ADMIN

2. Paste in irm https://gist.github.com/ave9858/c3451d9f452389ac7607c99d45edecc6/raw/UninstallEdge.ps1 | iex and press enter

3. Microsoft Edge will be completely uninstalled.

Easy Telemetry Disable for 10/11

Prerequisites

  1. Upgrade to Enterprise edition of Windows 10/11 if you are running Home or Pro.
    • You can do this through the Change Edition option in the Extras menu in MAS.

Disabling Telemetry via Group Policy

  1. Open the Group Policy Editor. Search for "Edit Group Policy" in search or run gpedit.msc.